import React from 'react'
import { Route } from "react-router-dom";
import Nprogress from 'nprogress'
import 'nprogress/nprogress.css'
import './FancyRoute.css'
const FancyRoute=props=>{
    React.useState(Nprogress.start())
    React.useEffect(()=>{
        Nprogress.done()
        return ()=>{
            Nprogress.start()
        }
    })
    return (
        <div className='container boxContainer'>
            <Route {...props}></Route>
        </div>
    )
}
export default FancyRoute

